package io.bytestream;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test7 {
    public static void main(String[] args) throws IOException {
        // 拷贝图片
        long l = System.currentTimeMillis();
        FileInputStream fis = new FileInputStream("AdvancedCode/src/io/bytestream/info/鸽鸽.jpg");
        FileOutputStream fos = new FileOutputStream("AdvancedCode/src/io/bytestream/info/鸽鸽拷.jpg");

        int c;
        while (((c = fis.read()) != -1)){
            fos.write(c);
        }
        fis.close();
        fos.close();
        long l1 = System.currentTimeMillis();
        System.out.println((l1 - l)/1000);
    }
}
